home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Startmenu Clear MRUs.xpl
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
75 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="5"
"COUNT"="4"
"UIPATH"="Appearance\Start menu\Clear"
"NAME"="Clear Items"
"VERSION"="1.41"
"LANGUAGE"="VBScript"
"TEXT 1"="Clear "Run..." commands"
"TEXT 2"="Clear found files ("Find" - "Files")"
"TEXT 3"="Clear found computers ("Find" - "Computer")"
"TEXT 4"="Clear "Recent Documents""
"DESCRIPTION 1"="Click an item to be cleared."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
'Declaration of some constants
sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU\"
sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU\"
sP3="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FindComputerMRU\"
sP4="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\"
'HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Prnportsmru" 'TODO... Some day... After Y2k
'Called when the Plugin is started
Sub Plugin_Initialize
End Sub
'Called when the Plugin should validate the Data the user has entered
Sub Plugin_CheckData(ElementIndex)
End Sub
'Called when the Plugin should apply the changes
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Select Case ElementIndex
Case 1 'run
i=RegEnumValues(sp1)
for l=1 to i
Call RegDeleteValue(sp1 & RegEnumElement(l))
Next
Case 2'files
i=RegEnumValues(sp2)
for l=1 to i
Call RegDeleteValue(sp2 & RegEnumElement(l))
Next
Case 3'computers
i=RegEnumValues(sp3)
for l=1 to i
Call RegDeleteValue(sp3 & RegEnumElement(l))
Next
Case 4'Docs
i=RegEnumValues(sp4)
for l=1 to i
Call RegDeleteValue(sp4 & RegEnumElement(l))
Next
end Select
Call MsgInformation("Cleared, please restart your PC so the changes can take effect.")
Call Restart
End Sub
'Called when the Plugin is about to be removed from memory
Sub Plugin_Terminate
End Sub